<template>
    <div class="content">
      <ul class="honor-list" id="honor-list">
        <li v-for="item in honorList" :key="item.id">
          <div class="honor-img">
            <img :src="item.img" alt="">
          </div>
          <div class="honor-info" v-html="item.content">

          </div>
        </li>
      </ul>
    </div>
</template>

<script>
  export default {
    name: 'honor',
    async asyncData({$axios}){
      let honorList = await $axios.$get('http://tfngw.tfnhg.com/Api/New/get_jtry');
      return { honorList }
    }
  }
</script>

<style scoped>
  .honor-list{
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
  }
  .honor-list li{
    width: 2.54rem;
    height:2.54rem;
    background: #e8ebe5;
    margin-top: 0.18rem;

  }
  .honor-list::after {
     content: "";
     width: 2.54rem; 
     display: block; 
     height:0;
  }
  .honor-img{
    width: 1.4rem;
    height: 1.4rem;
    margin: 0.3rem auto;
  }
  .honor-img img{
    width: 100%;
    margin: 0;
  }
  .honor-info{
    font-size: 0.12rem;
    text-align: center;
  }
  .honor-info p{
    margin: 0;
    line-height: 1.5;
  }
</style>
